<html>
<head><meta charset="utf-8"><title>Semantic Highlighting in Hovers · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Semantic.20Highlighting.20in.20Hovers.html">Semantic Highlighting in Hovers</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="213724036"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Semantic%20Highlighting%20in%20Hovers/near/213724036" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Lukas Wirth <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Semantic.20Highlighting.20in.20Hovers.html#213724036">(Oct 18 2020 at 20:26)</a>:</h4>
<p>So I'm not sure if this is even possible with the language server protocol which is why I'm asking this here first instead of in a github issue, but I noticed that hover hints that show a function's signature don't use semantic highlighting. Is this possible to implement in RA or blocked upstream in the protocol?</p>



<a name="213724286"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Semantic%20Highlighting%20in%20Hovers/near/213724286" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Semantic.20Highlighting.20in.20Hovers.html#213724286">(Oct 18 2020 at 20:30)</a>:</h4>
<p>I think that's not possible to implement sadly</p>



<a name="213724310"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Semantic%20Highlighting%20in%20Hovers/near/213724310" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Semantic.20Highlighting.20in.20Hovers.html#213724310">(Oct 18 2020 at 20:31)</a>:</h4>
<p>Though, I haven't researched this recently,  i won't be surprised if there's some proposal to that end already on the LSP repo</p>



<a name="213724485"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Semantic%20Highlighting%20in%20Hovers/near/213724485" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Lukas Wirth <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Semantic.20Highlighting.20in.20Hovers.html#213724485">(Oct 18 2020 at 20:34)</a>:</h4>
<p>For some reason I didn't think of checking the LSP repo for this first but yes you were right, if I'm not mistaken <a href="https://github.com/microsoft/language-server-protocol/issues/1056">this issue</a> there is already asking for it. <span aria-label="thumbs up" class="emoji emoji-1f44d" role="img" title="thumbs up">:thumbs_up:</span></p>



<a name="213779216"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Semantic%20Highlighting%20in%20Hovers/near/213779216" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jeremy Kolb <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Semantic.20Highlighting.20in.20Hovers.html#213779216">(Oct 19 2020 at 12:46)</a>:</h4>
<p>There are a few issues about highlighting/formatting in hover and signature help for vscode but it doesn't look like it's going to happen any time soon.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>